<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:x="https://www.texmacs.org/2002/extensions" xmlns:m="http://www.w3.org/1998/Math/MathML">
  <head>
    <title>TeXmacs notes</title>
    <meta content="TeXmacs 1.99.15" name="generator"></meta>
    <link href="../resources/notes-base.css" type="text/css" rel="stylesheet"></link>
    <link href="../resources/blog-icon.png" rel="icon"></link>
    <script src="../resources/highlight.pack.js" language="javascript" defer></script>
    <script src="../resources/notes-base.js" language="javascript" defer></script>
  </head>
  <body>
    <div class="notes-header">
      <p>
        <img class="image" src="../resources/texmacs-blog-transparent.png" width="28.116784"></img><span style="margin-left: 2pt"></span><a href="./main.html">[main]</a><em
        class="notes-header-name">Notes on TeXmacs</em>
      </p>
    </div>
    <h1 id="auto-1">TeXmacs and HTML<span style="margin-left: 1em"></span></h1>
    <div class="notes-abstract">
      In this article we discuss question related to conversion from/to <class
      style="font-variant: small-caps">HTML</class>.
    </div>
    <p>
      Since TeXmacs 1.99.14 we support an improved converter to <class style="font-variant: small-caps">HTML</class>.
      The new converter is stylable using <class style="font-variant: small-caps">CSS</class>, which
      should allow you to produce nice web versions of your papers that are
      readable on multiple devices. Joris' personal website shows what you can
      do: <a href="https://www.texmacs.org/joris/main/joris.html">https://www.texmacs.org/joris/main/joris.html</a> 
    </p>
    <p>
      For a random math paper, see: <a href="https://www.texmacs.org/joris/ffnlogn/ffnlogn.html">https://www.texmacs.org/joris/ffnlogn/ffnlogn.html</a>
    </p>
    <p>
      The precise <class style="font-variant: small-caps">CSS</class> style can be selected in the user
      preferences dialog: <class class="tmweb-menu" style="font-family: sans-serif">Preferences<span style="margin-left: 0.16665em"></span>.<span
      style="margin-left: 0.16665em"></span>.<span style="margin-left: 0.16665em"></span>.<span style="margin-left: 0.16665em"></span></class>&rarr;<class
      class="tmweb-menu" style="font-family: sans-serif">Convert</class>&rarr;<class class="tmweb-menu" style="font-family: sans-serif">Html</class>&rarr;<class
      class="tmweb-menu" style="font-family: sans-serif">CSS style sheet</class><a id="auto-2"></a>. 
    </p>
    <p>
      If someone with <class style="font-variant: small-caps">CSS</class> design skills wants to
      contribute other styles, then we would be happy to include them in the
      official distribution.
    </p>
    <p>
      
    </p>
    <p>
      Note that TeXmacs can both export formulas as <class style="font-variant: small-caps">MathML</class>
      as well (as noted in the discussion) and as <class style="font-variant: small-caps">MathJax</class>
      (not clearly mentioned so far).
    </p>
    <p>
      It should be noted that both <class style="font-variant: small-caps">MathML</class> and <class
      style="font-variant: small-caps">MathJax</class> come with their problems (and that is why a
      prefer the less error-prone solution of images): 
    </p>
    <ul>
      <li>
        <p>
          Both the rendering quality of <class style="font-variant: small-caps">MathML</class> and
          <class style="font-variant: small-caps">MathJax</class> is not as good as with TeXmacs
        </p>
      </li>
      <li>
        <p>
          MathML lacks support for formula integration in the main text. For
          instance, equation arrays are a pain. Joris found a way to hack this
          with <class style="font-variant: small-caps">CSS</class> in the case of images, but <class
          style="font-variant: small-caps">MathML</class> is not sufficiently widely used for
          duplicating this effort.
        </p>
      </li>
      <li>
        <p>
          <class style="font-variant: small-caps">MathJax</class> lacks several LaTeX constructs, so the
          standard LaTeX export filter would need to be hacked quite a bit for
          various exotic constructs and we don't have currently enough
          developer time and energy for doing the LaTeX export filters twice.
        </p>
      </li>
    </ul>
    <p>
      Concerning copy&amp;paste, we might annotate images with LaTeX formulas.
      That would not be very hard to implement, although it would take some
      time, of course.
    </p>
    <p>
      
    </p>
  </body>
</html>